package com.example.service;

import com.example.controller.request.TrafficPageRequest;
import com.example.controller.request.UseTrafficRequest;
import com.example.model.EventMessage;
import com.example.utils.JsonData;
import com.example.vo.TrafficVO;

import java.util.Map;

/**
 * @author yinxin
 * @version 1.0
 * @Description: 流量包业务代码
 * @date 2022/6/2214:41
 */
public interface TrafficService {

    Boolean handleTrafficMessage(EventMessage eventMessage);

    Map<String, Object> pageAvailable(TrafficPageRequest request);

    TrafficVO detail(Long trafficId);

    boolean deleteExpireTraffic();

    JsonData reduce(UseTrafficRequest useTrafficRequest);
}
